﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Snake.GameBase
{
    class TrapManager
    {
        public List<IGameComponent> Traps { get; set; }
        private List<Point> freepoints;
        public TrapManager(List<Point> freepoints)
        {
            Traps = new List<IGameComponent>();
            this.freepoints = freepoints;
        }
        public void TouchTrap(IGameComponent touched_trap)
        {
            Traps.Remove(touched_trap);
            freepoints.Add(touched_trap.Position);
        }
    }
}
